package com.thh.shirodemo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author AdrianHHT
 * @create 2022-07-30-15:54
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Deal {
    @TableId(value="deal_id",type= IdType.AUTO)
    private int dealId;
    private String goodName;
    private int userId;

    public Deal(String goodName, int userId) {
        this.goodName = goodName;
        this.userId = userId;
    }
}
